﻿using MangoMes.Commont.Domain.Products;
using MangoMes.Commont.Domain;
using MangoMes.Commont.Domain.Department;
using MangoMes.Commont.Domain.RBACs;
using MangoMes.Commont.Domain.Suppliers;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MangoMes.Commont.Domain.Jocker;
using MangoMes.Commont.Domain.Client;
using MangoMes.Commont.Domain.SellStocks;
using MangoMes.Commont.Domain.Purchase;
using MangoMes.Commont.Domain.Productions;
using MangoMes.Commont.Domain.ArrivalNotices;
using MangoMes.Commont.Domain.ProductionWorking;
using MangoMes.Commont.Domain.QRUPC;

namespace MangoMes.Commont.DBContext
{
    public class EFDBContext:DbContext
    {
        public EFDBContext(DbContextOptions<EFDBContext> options) : base(options) { }

        public DbSet<Permissions> Permissions { get; set; }
        public DbSet<RolesPermissions> RolesPermissions { get; set; }
        public DbSet<Roles> Roles { get; set; }
        /// <summary>
        /// 供应商等级表
        /// </summary>
        public DbSet<SupplierClass> SupplierClass { get; set; }
        /// <summary>
        /// 供应商管理表
        /// </summary>
        public DbSet<Supplier> Supplier { get; set; }
        /// <summary>
        /// 销售出库单表
        /// </summary>
        public DbSet<SellStock> SellStock { get; set; }
        /// <summary>
        /// 产品销售表
        /// </summary>
        public DbSet<ProductsSale> ProductsSale { get; set; }
        /// <summary>
        /// 出库单表
        /// </summary>
        public DbSet<Stockremoval> Stockremoval { get; set; }
        /// <summary>
        /// 生产报工类型
        /// </summary>
        public DbSet<ProductionType> ProductionType { get; set; }
        /// <summary>
        /// 生产报工表
        /// </summary>
        public DbSet<ProductionWork> ProductionWork { get; set; }
        /// <summary>
        /// 赋码管理
        /// </summary>
        public DbSet<QUCode> QUCode { get; set; }

        /// <summary>
        /// 物料产品分类表
        /// </summary>
        public DbSet<ProductTypes> ProductTypes { get; set; }
        public DbSet<ProductManage> ProductManage { get; set; }
        public DbSet<Picking> Picking { get; set; }
        public DbSet<Stripping> Stripping { get; set; }
        public DbSet<ArrivalNotice> ArrivalNotice { get; set; }
        public DbSet<Noticelines> Noticelines { get; set; }
        public DbSet<Prodline> Prodline { get; set; }
        public DbSet<Rejections> Rejections { get; set; }

        public DbSet<Departments> Departments {  get; set; }
        public DbSet<Enterprise> Enterprises {  get; set; }
        public DbSet<CraftRoute> CraftRoute {  get; set; }
        public DbSet<Stashs> Stashs {  get; set; }
        public DbSet<RecordsLogin> RecordsLogin {  get; set; }
        public DbSet<processk> processk {  get; set; }
        public DbSet<ClientManagement> ClientManagement {  get; set; }
        public DbSet<ClientType> ClientType {  get; set; }
        public DbSet<PurchaseStorage> PurchaseStorage {  get; set; }
        public DbSet<Material> Material { get; set; }
        public DbSet<Warehouselist> Warehouselist { get; set; }
        


    }
}
